//
//  BViewController.m
//  HSYCustomNavigationController
//
//  Created by key on 2017/2/8.
//  Copyright © 2017年 Scho.CustomNavigationController.Demo. All rights reserved.
//

#import "BViewController.h"

@interface BViewController ()

@end

@implementation BViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.view.backgroundColor = [UIColor greenColor];
    
    UIButton *pop = [UIButton buttonWithType:UIButtonTypeCustom];
    [pop setTitle:@"pops" forState:UIControlStateNormal];
    [pop setTitle:@"pops" forState:UIControlStateHighlighted];
    [pop setTitleColor:[UIColor redColor] forState:UIControlStateNormal];
    [pop setTitleColor:[UIColor redColor] forState:UIControlStateHighlighted];
    [pop addTarget:self action:@selector(popVC:) forControlEvents:UIControlEventTouchUpInside];
    pop.frame = CGRectMake(100, 100, 150, 150);
    pop.backgroundColor = [UIColor grayColor];
    [self.view addSubview:pop];
    
    self.realTitle = @"test";
    // Do any additional setup after loading the view.
}

- (void)popVC:(id)sender
{
    [self.navigationController popViewControllerAnimated:YES];
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
